package com.woniu.ucenterservice.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration  // ssm  applicationContext.xml <bean>
public class WebMvcConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/register").setViewName("register");
       // registry.addViewController("/query").setViewName("login");
        //registry.addViewController("/ww").setViewName("register");
        registry.addViewController("/login").setViewName("login");
        registry.addViewController("/index").setViewName("users/index");
        registry.addViewController("/user/userList").setViewName("users/userList");
        registry.addViewController("/sys/message").setViewName("sys/message");
        registry.addViewController("/sys/toFixPwd").setViewName("sys/toFixPwd");
        registry.addViewController("/sys/isCode").setViewName("sys/isCode");
        registry.addViewController("/sys/findpwd").setViewName("sys/findPwd");
        registry.addViewController("/sys/email").setViewName("sys/email");
        registry.addViewController("/user/addUser").setViewName("users/addUser");
        registry.addViewController("/sys/main").setViewName("sys/main");
        registry.addViewController("/sys/myfavgoods").setViewName("sys/favGoods");
        registry.addViewController("/sys/mygoods").setViewName("sys/myGoods");
        registry.addViewController("/sys/myhistory").setViewName("sys/myhistory");
        registry.addViewController("/sys/ts").setViewName("sys/ts");
        registry.addViewController("/sys/addTs").setViewName("sys/addTs");
        registry.addViewController("/sys/main").setViewName("sys/main");
        registry.addViewController("/sys/roleList").setViewName("sys/roleList");
        registry.addViewController("/sys/addRole").setViewName("sys/addRole");
        registry.addViewController("/sys/menuList").setViewName("sys/menuList");

    }
}
